package com.github.ecbp.user.service.service;


import com.github.ecbp.common.data.service.BaseService;
import com.github.ecbp.user.service.entity.TAdmin;
import com.github.ecbp.user.service.entity.TAdminRoleRelation;
import com.github.ecbp.user.service.vo.AdminRoleIdVo;
import com.github.ecbp.user.service.vo.ListInfoVo;

import java.util.List;
import java.util.Set;

public interface AdminRoleRelationService extends BaseService<TAdminRoleRelation> {
    /***
     * @description 通过角色ID查询统计数据
     * @param ids ID列表
     * @return java.util.List<com.ecbp.service.user.vo.ListInfoVo>
     * @author zj2626
     * @date 2020/5/12
     */
    List<ListInfoVo> pageInfoList(List<Long> ids);

    /**
     * 通过用户ID查询角色ID
     *
     * @param adminId
     * @return java.util.List<com.ecbp.service.user.vo.AdminRoleIdVo>
     * @author zj2626
     * @date 2020/5/12
     */
    List<AdminRoleIdVo> getRoleIdByAdminId(Long adminId);

    /**
     * 通过用户ID查询角色ID
     *
     * @param adminId
     * @return java.util.List<com.ecbp.service.user.vo.AdminRoleIdVo>
     * @author zj2626
     * @date 2020/5/12
     */
    List<AdminRoleIdVo> getRoleIdByAdminId(Set<Long> adminId);

    /**
     * 通过角色ID查询用户ID
     *
     * @param roleId
     * @return java.util.List<com.ecbp.service.user.entity.TAdmin>
     * @author zj2626
     * @date 2020/5/12
     */
    List<TAdmin> getAdminIdByRoleId(Long roleId);

    /**
     * 通过角色ID查询用户ID
     *
     * @param roleIds
     * @return java.util.List<com.ecbp.service.user.entity.TAdmin>
     * @author zj2626
     * @date 2020/5/12
     */
    List<TAdmin> getAdminIdByRoleId(Set<Long> roleIds);
}
